package it.apiconsulting.sharem.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="t_playlist")
public class Playlist implements Serializable{
	
	private static final long serialVersionUID = -8767337896773261247L;
	
    private Long id;
    private Long idUser;
    private String nome;
    private String path;
    private String durata;
    private boolean stato;

	@Id
	@GeneratedValue
	@Column(name="id")
	public Long getId() {
		return id;
	}
	
	@Column(name="id_user")
	public Long getIdUser() {
		return idUser;
	}
	
	@Column(name="nome")
	public String getNome() {
		return nome;
	}
	
	@Column(name="path")
	public String getPath() {
		return path;
	}

	@Column(name="durata")
	public String getDurata() {
		return durata;
	}
	
	@Column(name="stato")
	public boolean isStato() {
		return stato;
	}

	public void setStato(boolean stato) {
		this.stato = stato;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public void setIdUser(Long idUser) {
		this.idUser = idUser;
	}
	
	public void setNome(String nome) {
		this.nome = nome;
	}
	
	public void setPath(String path) {
		this.path = path;
	}

	public void setDurata(String durata) {
		this.durata = durata;
	}
}
